# with can close automatically
with open('test.txt', mode='r', encoding='utf8') as f:
    content = f.read()
    print(content)

print('结束')